package soundManager 
{
	/**
	 * ...
	 * @author SChabanov
	 */
	public class SoundModel 
	{
			//sound types		
		public static const SOUND:uint = 2;
		public static const MUSIC:uint = 4;
		
		public var source:Object;
		public var soundId:String = "_";
		public var position:Number = 0;
		public var volume:Number = 1;
		public var loops:int = 0;
		public var soundType:uint = SOUND;
		public var bufferTime:Number = 1000;
		public var checkPolicy:Boolean;
		public var priority:uint = 0;
		
		public static function create(src:Object,soundId:String,priority:uint=0,pos:Number=0,loop:int=0,vol:Number=1,sType:uint = SOUND,buffer:Number=1000,checkPolicy:Boolean=false):SoundModel
		{
			var smodel:SoundModel = new SoundModel();
			smodel.bufferTime = buffer;
			smodel.checkPolicy = checkPolicy;
			smodel.loops = loop;
			smodel.position = pos;
			smodel.soundId = soundId;
			smodel.soundType = sType;
			smodel.source = src;
			smodel.priority = priority;
			smodel.volume = vol;
			return smodel;
		}
				
	}

}